<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<body>
<!---------------- 商品详情 ------------------->
<style>
    p img{
        width:100%;
    }
</style>
<!-- 页头 -->
{include file="common/page/header"}
<!-- jsfiles -->
{include file="common/page/jsfiles"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>商品详情</h3>
            <div class="inner-section row">
                <div class="items add-div">
                    <form id="myForm" action="#" method="post" enctype="multipart/form-data">
                        <div class="item table-responsive">
                            <table class="table table-striped table-hover table-bordered table-base">
                                <tbody>
                                    <tr>
                                        <td>商品名称<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.name}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品图片<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            <img src="../../{$goodsInfo.thumb}" height="30">
                                        </td>
                                        <td></td>
                                    </tr>
                                    {if $goodsInfo.standard eq 1}
                                    <tr>
                                        <td>商品属性<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            <div class="property-group-wrap">
                                                <div class="property-group-area">
                                                    {foreach $propertyGroups as $group}
                                                    <div class="property-group">
                                                        {foreach $group.propertyList as $property}
                                                    <span class="span property">
                                                        <span  class="property-name">{$property->name}</span>
                                                        <span class="property-value">【{$property->value}】</span>
                                                    </span>
                                                        {/foreach}
                                                        <span>现价</span>
                                                        {$group.price}
                                                        <span>原价</span>
                                                        {$group.ori_price}
                                                        <span>库存</span>
                                                        {$group.inventory}
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>

                                            <input type="hidden" name="propertyGroups" id="propertyGroups">
                                        </td>
                                        <td class="td3 property-info"></td>
                                    </tr>
                                    {/if}
									<tr>
                                        <td>商品编号<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.number}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品销量<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.sale_quantity}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品简介<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.simple_desc}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品单位<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.unit}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>评价总数<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                           {if $goodsInfo.comment_count} {$goodsInfo.comment_count}{else}暂无{/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>评价总分<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {if $goodsInfo.comment_score}{$goodsInfo.comment_score}{else}暂无{/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr class="hidden">
                                        <td class="td1"><label for="sortnum"><span class="must-tag">*</span>商品信息</label></td>
                                        <td class="td2">
                                            {if $goodsInfo.info}
                                            {foreach $goodsInfo.info as $per}
                                            <div class="goods-info">
                                                <input type="text" class="info-name" name="info_name[]" placeholder="信息名称" value="{$per.name}">
                                                <input type="text" class="info-value" name="info_value[]" placeholder="信息内容" value="{$per.value}">
                                            </div>
                                            {/foreach}
                                            {else}
                                            {/if}
                                        </td>
                                        <td class="td3"></td>
                                    </tr>
                                    <tr>
                                        <td>状态<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {if $goodsInfo.updown eq '0'}
			                       			已下架
			                       			{elseif $goodsInfo.updown eq '1'}
			                       			已上架
			                       			{/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>一般价格<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.price}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品原价<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.ori_price}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <!-- 开启积分模式时 -->
                                    {if $isPoints}
                                    <tr class="hidden">
                                        <td>商品积分<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.points}
                                        </td>
                                        <td></td>
                                    </tr>
                                    {/if}
                                     <!-- 开启分销模式时 -->
                                    {if $goods_fen eq 1}
                                    <tr>
                                        <td>本级佣金系数<span class="must-tag">&nbsp;&nbsp;</span></td>
                                        <td>{$goodsInfo.self_fee_ratio}</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>上级佣金系数<span class="must-tag">&nbsp;&nbsp;</span></td>
                                        <td>{$goodsInfo.parent_fee_ratio}</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>上上级佣金系数<span class="must-tag">&nbsp;&nbsp;</span></td>
                                        <td>{$goodsInfo.grand_fee_ratio}</td>
                                        <td></td>
                                    </tr>
                                    {/if}
                                    <tr>
                                        <td>首页推荐<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {if $goodsInfo.recommend eq '0'}
			                       			不推荐
			                       			{elseif $goodsInfo.recommend eq '1'}
			                       			推荐
			                       			{/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
			                            <td>购物须知<label class="must-tag">&nbsp;&nbsp;</label></td>
			                            <td>
			                            	<div>
			                                	{$goodsInfo.buy_note}
			                                </div>
			                            </td>
			                            <td></td>
			                        </tr>
			                        <tr>
			                            <td>详情描述<label class="must-tag">&nbsp;&nbsp;</label></td>
			                            <td>
			                                <div style="width:100%">
			                                	{$goodsInfo.detail_desc}
			                                </div>
			                            </td>
			                            <td></td>
			                        </tr>
                                    {if $goodsInfo.has_image eq '1'}
                                    <tr>
		                       			<td>库存<label class="must-tag">&nbsp;&nbsp;</label></td>
		                       			<td>
		                       			{$goodsInfo.inventory}
		                       			</td>
		                       			<td></td>
		                       		</tr>
		                       		{/if}
                                    <tr class="hidden">
                                        <td class="td1"><label for="sortnum"><span class="must-tag">*</span>商品信息</label></td>
                                        <td class="td2">
                                            {if $goods.info}
                                            {foreach $goods.info as $per}
                                            <div class="goods-info">
                                                <input type="text" class="info-name" name="info_name[]" placeholder="信息名称" value="{$per.name}">
                                                <input type="text" class="info-value" name="info_value[]" placeholder="信息内容" value="{$per.value}">
                                                <button class="btn btn-danger btn-xs deleteInfo">删除</button>
                                                <button class="btn btn-info btn-xs addInfo">添加</button>
                                            </div>
                                            {/foreach}
                                            {/if}
                                        </td>
                                        <td class="td3"></td>
                                    </tr>
                                    <tr>
                                        <td>排序<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.sort_num}
                                        </td>
                                        <td></td>
                                    </tr>
		                       		<tr>
		                       			<td>添加时间<label class="must-tag">&nbsp;&nbsp;</label></td>
		                       			<td>
		                       			{$goodsInfo.add_time}
		                       			</td>
		                       			<td></td>
		                       		</tr>
                                    <tr>
                                        <td>创建者<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                        {$goodsInfo.creator}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <input type="hidden" name="id" value="{$goodsInfo.id}">
                                            <a href="javascript:window.history.go(-1);" class="btn btn-default">返回</a>
                                        </td>
                                        <td></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}
</body>
</html>